<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
	<th:block th:include="include :: header('新增支付商商户')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-payerBusinessInfo-add">
			<div class="form-group">	
				<label class="col-sm-3 control-label">支付商：</label>
				<div class="col-sm-8">
					<select style="width: 100%;height: 36px; border: 1px solid #ddd;" name="payerId">
						<option value=""></option>
						<option th:each="payer:${payers}" th:value="${payer.userId}" th:text="${payer.userName}"></option>
					</select>
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">支付商商户编号：</label>
				<div class="col-sm-8">
					<input id="businessNo" name="businessNo" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">api_key：</label>
				<div class="col-sm-8">
					<input id="apiKey" name="apiKey" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">publicKey：</label>
				<div class="col-sm-8">
					<textarea name="publicKey" autocomplete="off" class="form-control" rows="5"></textarea>
				</div>
			</div>


			<div class="form-group">	
				<label class="col-sm-3 control-label">支付商商户名称：</label>
				<div class="col-sm-8">
					<input id="businessName" name="businessName" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">备注：</label>
				<div class="col-sm-8">
					<input id="remark" name="remark" class="form-control" type="text">
				</div>
			</div>
		</form>
	</div>
    <div th:include="include::footer"></div>
    <script type="text/javascript">
		var prefix = ctx + "channel/payerBusinessInfo"
		$("#form-payerBusinessInfo-add").validate({
			rules:{
				xxxx:{
					required:true,
				},
			},
			focusCleanup: true
		});
		
		function submitHandler() {
	        if ($.validate.form()) {
	            $.operate.save(prefix + "/add", $('#form-payerBusinessInfo-add').serialize());
	        }
	    }
	</script>
</body>
</html>
